package com.appleword.biz.book.mapper;

import java.util.List;
import com.appleword.biz.book.domain.ApplewordArticle;

/**
 * 文章Mapper接口
 * 
 * @author apple
 * @date 2024-05-13
 */
public interface ApplewordArticleMapper 
{
    /**
     * 查询文章
     * 
     * @param id 文章主键
     * @return 文章
     */
    public ApplewordArticle selectApplewordArticleById(Long id);

    /**
     * 查询文章列表
     * 
     * @param applewordArticle 文章
     * @return 文章集合
     */
    public List<ApplewordArticle> selectApplewordArticleList(ApplewordArticle applewordArticle);

    /**
     * 新增文章
     * 
     * @param applewordArticle 文章
     * @return 结果
     */
    public int insertApplewordArticle(ApplewordArticle applewordArticle);

    /**
     * 修改文章
     * 
     * @param applewordArticle 文章
     * @return 结果
     */
    public int updateApplewordArticle(ApplewordArticle applewordArticle);

    /**
     * 删除文章
     * 
     * @param id 文章主键
     * @return 结果
     */
    public int deleteApplewordArticleById(Long id);

    /**
     * 批量删除文章
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteApplewordArticleByIds(Long[] ids);
}